package collect.taobao.util.page;

public class Util
{
	private static final String CHARSET_ISO = "ISO8859-1";

	private static final String CHARSET_GB = "GBK";

	public static String getGBK(String str)
	{
		if (str == null)
		{
			return "";
		}

		try
		{
			byte[] temp_b = str.getBytes(CHARSET_ISO);
			String temp = new String(temp_b, CHARSET_GB);

			return temp;
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}

		return "";
	}
	
}
